/*
 * comm_port_class.hpp
 *
 *  Created on: Apr 4, 2010
 *      Author: root
 *      Command .
 */

#ifndef COMM_PORT_CLASS_HPP_
#define COMM_PORT_CLASS_HPP_
#include "CCS_include.hpp"


class c_commport
{
   private:
	bool device_load_type;//0-XML,1=SO file
	s8   device_name[DEVICE_NAME_MAX_LENGTH];
    u8   recv_data[DEVICE_RECV_BUF_SIZE];
    u8   send_data[DEVICE_SEND_BUF_SIZE];
    u32  recv_data_len;
    u32  send_data_len;
   public:
    bool add_recv_data(u8 buf[],u32 len)
    {

    }
    cmd_exec_over_code exec_command_switch(t_matrix_input *matrix_input,t_matrix_output *matrix_output)  //command about switch ptz osd
    {

    }

	c_commport(bool device_type,const char* devicename)
	{
		device_load_type=device_type;
		memset(&device_name,0x0,DEVICE_NAME_MAX_LENGTH);
        memcpy(&device_name,devicename,DEVICE_NAME_MAX_LENGTH-1);


	}
	~c_commport()
	{

	}

};


#endif /* COMM_PORT_CLASS_HPP_ */
